-
Notifications
You must be signed in to change notification settings - Fork 597
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Broker EventPolicy status condition set #8152
Fix Broker EventPolicy status condition set #8152
Conversation
/cherry-pick release-1.15 |
@creydr: once the present PR merges, I will cherry-pick it on top of release-1.15 in a new PR and assign it to you. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
@creydr should we open a follow up issue to make the unit tests find this? I imagine we need to register the condition set somewhere in the setup code for the unit tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Cali0707, creydr The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8152 +/- ##
==========================================
- Coverage 67.82% 67.71% -0.11%
==========================================
Files 370 370
Lines 17885 17946 +61
==========================================
+ Hits 12130 12152 +22
- Misses 4983 5020 +37
- Partials 772 774 +2 ☔ View full report in Codecov by Sentry. |
@creydr: The following test failed, say
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
This is, because we have in the e2e test the installation of the EventPolicy and broker.IsReady() in the same phase: eventing/test/rekt/features/broker/authz_feature.go Lines 61 to 83 in 7a90257
and the EventPolicy will only become ready in the next phase, when the pingsource gets installed. As this test will be refactored in #8150 anyhow, I would close this PR and have the fix in the PR, where we "detected" this issue. |
Currently we have the bug, that the Broker is still in Ready state, even when the EventPoliciesReady status condition is false:
This PR addresses it and fixes the issue.
A test for this is added as part of #8150 (this wasn't detected in the unit tests, as the AlternateBrokerConditionSet was registered in the controller)
Release Note